/*
 * @Descripttion:
 * @version:
 * @Author: Pengxin
 * @Date: 2025-02-23 03:14:04
 * @LastEditors: Pengxin
 * @LastEditTime: 2025-06-12 00:18:20
 */
import App from "./App"
import store from "./store"

import Vue from "vue"
import HttpRequest from "./common/httpRequest"
import HttpCache from "./common/cache"
import queue from "./common/queue"

// #ifdef H5
import "./common/uni.webview.1.5.4.js"
// #endif

import * as util from "./common/ulit" //公用方法
for (const [k, v] of Object.entries(util)) {
  Vue.filter(k, v)
  Vue.prototype[`$${k}`] = v
}

Vue.config.productionTip = false
Vue.prototype.$Request = HttpRequest
Vue.prototype.$queue = queue

Vue.prototype.$Sysconf = HttpRequest.config
Vue.prototype.$SysCache = HttpCache
Vue.config.productionTip = false
App.mpType = "app"

import uView from "@/node_modules/uview-ui"
Vue.use(uView)

// 引入全局TuniaoUI
import TuniaoUI from "tuniao-ui"
Vue.use(TuniaoUI)

// 引入TuniaoUI提供的vuex简写方法
let vuexStore = require("@/store/$t.mixin.js")
Vue.mixin(vuexStore)

// 引入TuniaoUI对小程序分享的mixin封装
let mpShare = require("tuniao-ui/libs/mixin/mpShare.js")
Vue.mixin(mpShare)

const app = new Vue({
  store,
  ...App,
})

app.$mount()
